<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead >
    <tr>
        <!--规定“ID”列置于第3列，居中显示-->
        <th lay-data="{field:'categId', width:80, unresize:true, align:'center'}">区域ID</th>
        <th lay-data="{field:'provinceId', width:80, unresize:true, align:'center', hide:true}">省ID</th>
        <!--规定“名称/标题”列置于第4列，通常居左显示，字数较少可以居中显示-->
        <th lay-data="{field:'name', unresize:true, align:'center'}">城市名称</th>
        <th lay-data="{field:'cityMeterRatio', width:150, unresize:true, align:'center'}">计价器3.0系数</th>
        <th lay-data="{field:'cityOutRatio', width:150, unresize:true, align:'center'}">C默认系数</th>
        <th lay-data="{field:'cityProjectRatio', width:150, unresize:true, align:'center'}">B默认系数</th>
        <th lay-data="{field:'cityInRatio', width:150, unresize:true, align:'center'}">F默认系数</th>
        <th lay-data="{field:'updaterAndUpdateTime', unresize:true, align:'center'}">最近修改人/时间</th>
        <!--规定操作列置于最后-->
        <th lay-data="{field:'操作', width:100, unresize:true, align:'center', fixed:'right'}">操作</th>
        <!--其他规范
            值较大的数字列居右显示，并使用千分号；值较小的数字列可居中显示，
            金额列统一居右显示，默认精确到小数点后2位，并使用千分号，
            通常情况下，时间或日期列靠后放置(操作列前)，居中显示
            -->
    </tr>
    </thead>
    <tbody>
    <tr th:each="item,itemStat:${items}">
        <td th:text="${item.cityId}">cityId</td>
        <td th:text="${item.provinceId}">provinceId</td>
        <td th:text="${item.name}">name</td>
        <td th:text="${(item.cityMeterToBeEffectiveRatio == null && item.cityMeterRatio == null) ? '-' : ((item.cityMeterToBeEffectiveRatio == null ? '-':item.cityMeterToBeEffectiveRatio) + '/' + (item.cityMeterRatio == null ? '-':item.cityMeterRatio))}">
        </td>
        <td th:text="${(item.cityOutToBeEffectiveRatio == null && item.cityOutRatio == null) ? '-' : ((item.cityOutToBeEffectiveRatio == null ? '-':item.cityOutToBeEffectiveRatio) + '/' + (item.cityOutRatio == null ? '-':item.cityOutRatio))}">
        </td>
        <td th:text="${(item.cityProjectToBeEffectiveRatio == null && item.cityProjectRatio == null) ? '-' : ((item.cityProjectToBeEffectiveRatio == null ? '-':item.cityProjectToBeEffectiveRatio) + '/' + (item.cityProjectRatio == null ? '-':item.cityProjectRatio))}">
        </td>
        <td th:text="${(item.cityInToBeEffectiveRatio == null && item.cityInRatio == null) ? '-' : ((item.cityInToBeEffectiveRatio == null ? '-':item.cityInToBeEffectiveRatio) + '/' + (item.cityInRatio == null ? '-':item.cityInRatio))}">
        </td>
        <td th:text="${item.updater == null ? '' : item.updater} + '/' + ${T(com.zmn.common.utils.date.DateUtil).toString(item.updateTime)}">updaterAndUpdateTime</td>
        <td>
            <a class="layui-btn layui-btn-xs btn-operate" th:data-id="${item.cityId}" th:data-index="${itemStat.index}">操作</a>
        </td>
<!--        <td>-->
<!--            <a th:if="${#authPermit.checkPermit('/product/citypriceratio/cityInRatio.action')}" style="color: #00a0e9" href="javascript:void(0)" th:onclick="setCityInRatio([[${item.cityId}]], [[${item.provinceId}]]);">保内默认系数<span>&nbsp;&nbsp;&nbsp;</span></a>-->
<!--            <a th:if="${#authPermit.checkPermit('/product/citypriceratio/cityOutRatio.action')}" style="color: #00a0e9" href="javascript:void(0)" th:onclick="setCityOutRatio([[${item.cityId}]], [[${item.provinceId}]]);">保外默认系数<span>&nbsp;&nbsp;&nbsp;</span></a>-->
<!--            <a th:if="${#authPermit.checkPermit('/product/citypriceratio/categoryInRatio.action')}" style="color: #00a0e9" th:lay-href="|/product/citypriceratio/categoryInRatio.action?cityId=${item.cityId}&provinceId=${item.provinceId}&cityName=${item.name}|" lay-text="保内分类系数">保内分类系数<span>&nbsp;&nbsp;&nbsp;</span></a>-->
<!--            <a th:if="${#authPermit.checkPermit('/product/citypriceratio/categoryOutRatio.action')}" style="color: #00a0e9" th:lay-href="|/product/citypriceratio/categoryOutRatio.action?cityId=${item.cityId}&provinceId=${item.provinceId}&cityName=${item.name}|" lay-text="保外分类系数">保外分类系数<span>&nbsp;&nbsp;&nbsp;</span></a>-->
<!--        </td>-->
    </tr>
    </tbody>
</table>
